package com.yixun.lbx.service;

import com.yixun.lbx.entity.YxProCompanyProduct;

import java.util.HashMap;
import java.util.List;

public interface CompanyProductService {
    /**
     * @param map todo
     * @return int
     * @apiNote addCompanyProduct
     */
    int addCompanyProduct(HashMap<String, Object> map);

    /**
     * @param map todo
     * @return int
     * @apiNote updateCompanyProduct
     */
    int updateCompanyProduct(HashMap<String, Object> map);

    /**
     * @param map todo
     * @return int
     * @apiNote deleteCompanyProduct
     */
    int deleteCompanyProduct(HashMap<String, Object> map);

    /**
     * @param companyProduct todo
     * @return java.util.List<com.yixun.lbx.entity.YxProCompanyProduct>
     * @apiNote getCompanyProductByArgs
     */
    List<YxProCompanyProduct> getCompanyProductByArgs(YxProCompanyProduct companyProduct);

    /**
     * @param map todo
     * @return java.lang.Integer
     * @apiNote CpCount
     */
    Integer CpCount(HashMap<String, String> map);

    /**
     * @param map todo
     * @return java.util.List<com.yixun.lbx.entity.YxProCompanyProduct>
     * @apiNote getListByPage
     */
    List<YxProCompanyProduct> getListByPage(HashMap<String, String> map);

    /**
     * @param map todo
     * @return java.util.List<com.yixun.lbx.entity.YxProCompanyProduct>
     * @apiNote getSearchListByPage
     */
    List<YxProCompanyProduct> getSearchListByPage(HashMap<String, String> map);
    
    YxProCompanyProduct getOneById(String id);
}
